<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新评论通知</title>
    <style>
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f5f5f5;
        }
        .container {
            background-color: #ffffff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .header {
            text-align: center;
            border-bottom: 2px solid #1890ff;
            padding-bottom: 20px;
            margin-bottom: 30px;
        }
        .header h1 {
            color: #1890ff;
            margin: 0;
            font-size: 24px;
        }
        .content {
            margin-bottom: 30px;
        }
        .article-title {
            background-color: #f0f8ff;
            padding: 15px;
            border-left: 4px solid #1890ff;
            margin: 20px 0;
            border-radius: 4px;
        }
        .comment-box {
            background-color: #f9f9f9;
            padding: 20px;
            border-radius: 6px;
            border: 1px solid #e0e0e0;
            margin: 20px 0;
        }
        .comment-meta {
            color: #666;
            font-size: 14px;
            margin-bottom: 10px;
        }
        .comment-content {
            color: #333;
            font-size: 16px;
            line-height: 1.8;
        }
        .button {
            display: inline-block;
            background-color: #1890ff;
            color: white;
            padding: 12px 24px;
            text-decoration: none;
            border-radius: 4px;
            margin: 20px 0;
            font-weight: bold;
        }
        .button:hover {
            background-color: #40a9ff;
        }
        .footer {
            text-align: center;
            color: #666;
            font-size: 14px;
            border-top: 1px solid #e0e0e0;
            padding-top: 20px;
            margin-top: 30px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1 th:text="${siteName}">个人博客</h1>
            <p>您收到了一条新评论</p>
        </div>
        
        <div class="content">
            <p>您好！</p>
            <p>您的文章收到了一条新评论：</p>
            
            <div class="article-title">
                <strong th:text="${articleTitle}">文章标题</strong>
            </div>
            
            <div class="comment-box">
                <div class="comment-meta">
                    <strong th:text="${commenterName}">评论者</strong> 
                    于 <span th:text="${#temporals.format(commentTime, 'yyyy-MM-dd HH:mm')}">2024-01-01 12:00</span> 评论：
                </div>
                <div class="comment-content" th:text="${commentContent}">
                    评论内容
                </div>
            </div>
            
            <div style="text-align: center;">
                <a th:href="${articleUrl}" class="button">查看完整评论</a>
            </div>
        </div>
        
        <div class="footer">
            <p>此邮件由系统自动发送，请勿回复。</p>
            <p>
                <a th:href="${siteUrl}" th:text="${siteName}">个人博客</a> | 
                <a th:href="${siteUrl}">访问网站</a>
            </p>
        </div>
    </div>
</body>
</html>
